package week04.day01;

/**
 * 求1-100中所有3的倍数之和
 */

public class 练习1 {
    public static void main(String[] args) {
        int sum = 0;
        for (int i=0;i<=100;i=i+3){
            sum += i;
        }
        System.out.println("1-100中所有三的倍数之和为："+sum);
    }
}
